﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchoolSet
{
    public class Discipline:ICommentable
    {
        private string discipName;
        private int numberOfLectures;
        private int numberOfExercises;
        private List<string> comments;

        public string DiscipName
        {
            get { return this.discipName; }
        }
        public int NumberOfLectures
        {
            get { return this.numberOfLectures; }
        }
        public int NumberOfExercises
        {
            get { return this.numberOfExercises; }
        }
        public string[] Comments
        {
            get
            {
                return this.comments.ToArray();
            }
        }
        public Discipline(string name, int numberOfLect, int numberOfEx)
        {
            this.discipName = name;
            this.numberOfLectures = numberOfLect;
            this.numberOfExercises = numberOfEx;
        }
        public void AddComment(string comment)
        {
            this.comments.Add(comment);
        }
    }
}
